gem_dependency_check is an existing function that shouldn't be overwritten, but called

Dean Putney 10 years ago
parent
commit
59280c04fb
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/models/agents/tumblr_publish_agent.rb

+ 1 - 3
app/models/agents/tumblr_publish_agent.rb

@@ -57,9 +57,7 @@ module Agents
57 57
       Set `expected_update_period_in_days` to the maximum amount of time that you'd expect to pass between Events being created by this Agent.
58 58
     MD
59 59
 
60
-    def gem_dependency_check
61
-      defined?(Tumblr)
62
-    end
60
+    gem_dependency_check { defined?(Tumblr) }
63 61
 
64 62
     def validate_options
65 63
       errors.add(:base, "expected_update_period_in_days is required") unless options['expected_update_period_in_days'].present?